﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductEdit.aspx.cs" MasterPageFile="~/Administrator/default.master" Inherits="Administrator_ProductEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    Thêm/Sửa sản phẩm
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <h1>
        Thêm/SỬA SẢN PHẨM
    </h1>
    <table style="width:100%">
            <tr>
                <td style="height: 17px">
                    </td>
                <td style="height: 17px">
                    </td>
                <td rowspan="19">
                    </td>
            </tr>
            <tr>
                <td align="right">
                    Danh Mục:</td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        DataSourceID="ObjectDataSource1" DataTextField="Categoroy_Name" 
                        DataValueField="Category_ID">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    ID Sản Phẩm:</td>
                <td>
                    <asp:TextBox ID="txtId" runat="server" Width="280px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    Tên Sản Phẩm:</td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" Height="21px" Width="280px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    Giá:</td>
                <td>
                    <asp:TextBox ID="txtPrice" runat="server" Width="280px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    Bảo Hành:</td>
                <td>
                    <asp:TextBox ID="txtBaoHanh" runat="server" Width="280px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    Tình Trạng Kho:</td>
                <td>
                    <asp:RadioButtonList ID="rblStock" runat="server">
                        <asp:ListItem Value="1">Còn</asp:ListItem>
                        <asp:ListItem Value="0">Hết</asp:ListItem>
                        <asp:ListItem Value="2">Mới về</asp:ListItem>
                        <asp:ListItem Value="3">Gọi hàng</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                   <asp:CheckBox ID="CheckBox1" Text="Chọn ảnh minh họa:" runat="server" AutoPostBack="True" 
                        oncheckedchanged="CheckBox1_CheckedChanged" />
                </td>
                <td>
                    <asp:FileUpload runat="server" ID="fileUpload" Width="280px" /></td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td cols="50">
                    <asp:Image ID="Image1" runat="server" Height="205px" Width="163px" />
                </td>
            </tr>
            <tr>
                <td align="right">
                    Chi Tiết:</td>
                <td>
                    <textarea id="txtDetail" cols="50" name="S1" rows="5" runat="server"></textarea></td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right">
                    Trạng thái:</td>
                <td>
                    <asp:RadioButtonList ID="rbStatus" runat="server">
                        <asp:ListItem Value="10">Deleted</asp:ListItem>
                        <asp:ListItem Value="0">Used</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;</td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnNew" runat="server" Text="New" onclick="btnNew_Click" 
                        Width="73px" />
                    <asp:Button ID="btnUpdate" runat="server" Text="Update" 
                        onclick="btnUpdate_Click" Width="76px" />
                </td>
                <td>
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                        SelectMethod="GetAll" TypeName="BusinessLayer.Category">
                    </asp:ObjectDataSource>
                </td>
                <td align="right">
                    <asp:Button ID="BbtnBack" runat="server" Text="Back to List" 
                        onclick="BbtnBack_Click" />
                </td>
            </tr>
        </table>
</asp:Content>
